Part Number Hot Search : 
06A00 FR104 R1000 LT1084M A2810 4410M UPD72862 1N5230
Product Description
Full Text Search
 

To Download AN1116 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 AN1116 APPLICATION NOTE
Changing from the ST95P08 to the M95080 in Your Application Using a Simple Software Recognition Method
The members of the new M95xxx, SPI serial-bus, EEPROM chips offer features that were not available with the ST95xxx family. Table 1 summarizes the main differences between the new 8 Kbit M95080 memory, and the ST95P08, by way of example. This document is aimed at helping the designer to convert designs from using the ST95P08 to using the M95080. It concludes by indicating a simple algorithm that can be used in the application software to detect which of the two devices is being used. Table 1. Differences and Improvements (Functional and Electrical) Between the ST95P08 and the M95080
ST95P08 Memory capacity Supply range (VCC) Clock frequency (fMAX) Temperature range Page size Number of address bytes Block protection (BP1,BP0) ICC stand-by 8 Kbit 3 V to 5.5 V 2 MHz -40 to 85 C 16 Bytes 1 yes 50 A at 5.5 V 10 A at 3 V M95080 8 Kbit 4.5 V to 5.5 V 2.5 V to 5.5 V 1.8 V to 3.6 V 5 MHz -40 to 85 C (6) -20to 85 C (5) -40 to 125 C (3) 32 Bytes 2 yes 10 A at 5 V 2 A at 2.5 V 1 A at 1.8 V 4 mA at 2 or 5 MHz at 5 V 2 mA at 2 MHz at 5 V 2 mA at 1 MHz at 1.8 V Hardware write protection of the BPn protected area, and of the status register SRWD XXX BP1 BP0 WEL WIP 10 ms 0 0 0 0 0 I2 I1 I0
ICC operating
2 mA at 2 MHz Hardware write protection of the entire memory array. 1 1 1 1 BP1 BP0 WEL WIP 10 ms 0 0 0 X2 X1 I2 I1 I0
W feature (write control) Status register format Write cycle time (max.) Instruction format
February 1999
1/4
AN1116 - APPLICATION NOTE
The W feature Both the ST95P08 and M95080 support the software protection mode using the BP1 and BP0 status register bits. However, their behaviors are different with the use of the W pin. On the ST95P08, the W pin controls the write access to the memory array:
s s
W=1: write enabled throughout the entire memory array that is not software write-protected W=0: write disabled throughout the entire memory array
On the M95080, the W pin provides hardware write protection of the status register (SR), except for the WIP and WEL bits. When bit 7 (SRWD, the Status Register Write Disable bit) of the status register is `0' (the initial delivery state), it is possible to write to the status register once the WEL (Write Enable Latch) has been set, and regardless of the status of pin W (high or low). Once bit 7 (SRWD) of the status register has been set to `1', the possibility to rewrite the SR depends on the logical level present at pin W: - If W pin is high, it is possible to write to the status register after setting the WEL (Write Enable Latch). - If W pin is low, any attempt to modify the status register is ignored by the device, even if the WEL is set. Consequently, all the data bytes in the EEPROM area that are protected by the BPn bits of the status register, are also hardware protected against data corruption, and become a Read Only EEPROM area from the microcontroller. This mode is called the Hardware Protected Mode (HPM). It is possible to enter the Hardware Protected Mode (HPM) by setting the SRWD bit after pulling down the W pin, or by pulling down the W pin after setting SRWD bit. The only way to return from the Hardware Protected Mode, once entered, is to pull the W pin high. If the W pin is permanently tied high, the Hardware Protected Mode cannot be activated, and the Memory only allows the user to software-protect a part of the memory using the BPn bits of the status register. The protection features of the device are summarized in Table 2. Table 2. Write Protection Control on the M95080
W 1 0 1 0 SRWD Bit 0 0 1 1 Hardware Protected (HPM) Hardware write protected Hardware write protected Writeable after setting the WEL Software Protected (SPM) Writeable after setting WEL Software write protected by the BPn of the status register Writeable after setting the WEL Data Bytes Mode Status Register Protected Area Unprotected Area
Instruction code Using the two standard address bytes, M95080 instructions take the following format: 0 0 0 0 0 I 2 I1 I0 (where I 2, I1 and I0 are the instruction bits). The ST95P08, on the other hand, does not support the standard two byte addressing mode for high densities. Instead, the A8 and A9 address bits are placed beside the instruction bits, according to the following format: 0 0 0 X2 X1 I2 I 1 I0
2/4
AN1116 - APPLICATION NOTE
(where X2 and X1 are respectively A9 and A8 for Read and Write operations, and are Don't Care bits for others). SOFTWARE RECOGNITION ALGORITHM This last difference can be used by the application software to differentiate between the two types of memory device. (For a further summary, please see the comparison of the instruction formats of the two devices, in Table 3). The WREN instruction is used, prior to any write attempt to the memory, to set an internal logical bit of the status register which has to be set to 1 to try a write access to the memory. As described above in the "instruction format" section, 0001 1101 is a valid WREN instruction code for the ST95P08, and is not a valid WREN instruction for the M95080. The following algorithm is short, and easy to insert in the MCU code. It is also safe to use, inasmuch that it does not attempt to write to any non volatile bits. - Master sends the WREN instruction "0001 1110" to the memory (note that b3 and b4 are "1"). - Master sends the RDSR instruction "0000 0101" to the memory (note that b3 and b4 are "0" to avoid the High-Z state on the Q-bus during WEL bit read) and stores the value of the WEL bit in a variable that we will refer to as WEL1. - Master sends the WRDI instruction "0001 1100" to the memory (note that b3 and b4 are "1"). - Master sends the RDSR instruction "0000 0101" to the memory (again, b3 and b4 are "0" to avoid the High-Z state on the Q-bus during WEL bit read) and stores the value of the WEL bit in a variable that we will refer to as WEL2. - If (WEL1,WEL2)= (1,0) then the EEPROM device is a ST95P08 else the EEPROM device is an M95080 Table 3. Differences Between the ST95P08 and the M95080 Instruction Formats Instruction Format Instruction WREN WRDI RDSR WRSR READ WRITE Description ST95P08 Set Write Enable Latch Reset Write Enable Latch Read Status Register Write Status Register Read Data from Memory Array Write Data to Memory Array 000X X110 000X X100 000X X101 000X X001 000A A011 000A A010 M95080 0000 0110 0000 0100 0000 0101 0000 0001 0000 0011
0000 0010
Notes: 1. A = 1 indicates that the upper page is selected; A = 0 indicates that the lower page is selected 2. X = Don't Care
3/4
AN1116 - APPLICATION NOTE
If you have any questions or suggestions concerning the matters raised in this document, please send them to the following electronic mail addresses:
apps.eeprom@st.com ask.memory@st.com
(for application support) (for general enquiries)
Please remember to include your name, company, location, telephone number and fax number.
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics. (c) 1999 STMicroelectronics - All Rights Reserved The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. STMicroelectronics GROUP OF COMPANIES Australia - Brazil - China - France - Germany - Italy - Japan - Korea - Malaysia - Malta - Mexico - Morocco - The Netherlands - Singapore Spain - Sweden - Switzerland - Taiwan - Thailand - United Kingdom - U.S.A. http://www.st.com
4/4


▲Up To Search▲   

 
Price & Availability of AN1116

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X